const fs=require('fs');
let path="./www/1.html"
let readStream=fs.createReadStream(path)
let count=0,str="";
readStream.on("data",(data)=>{
    console.log(data)
    str+=data
    count++
})
readStream.on("end",(data)=>{
    console.log("str",str)
    console.log("count",count)
})
readStream.on("error",(err)=>{
    console.log(err)
})